<template>
  <div class="app-wrapper">
    <el-container>
      <el-aside width="200px" class="sidebar-container">
        <Menu />
      </el-aside>
      <el-container>
        <el-header>
          <Header />
        </el-header>
        <el-main>
          <Tabs />
          <router-view></router-view>
        </el-main>

        <el-footer>
          <Footer />
        </el-footer>
      </el-container>
    </el-container>
  </div>
</template>
<script setup>
import Menu from "../../components/Layout/Menu/index.vue";
import Header from "../../components/Layout/Header/index.vue";
import Footer from "../../components/Layout/Footer/index.vue";
import Tabs from "../../components/Layout/Tabs/index.vue";
import store from "@/store";
import { useRoute } from "vue-router";
const route = useRoute();
store.dispatch("getUserInfo", localStorage.getItem("userId"));
store.commit("ALERT_TABS", [store.state.editableTabs, route.path]);
</script>
<style scoped>
.app-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.sidebar-container {
  background-color: #2d3a4b;
  height: 100%;
}

.el-container {
  height: 100%;
}

.el-header {
  padding-left: 0px;
  padding-right: 0px;
}

:deep(ul.el-menu) {
  border-right-width: 0px;
}
</style>
